﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using PAMD.Database;

namespace PAMD.Extension
{
    public static class Utility
    {
        public static string GetRentalPeriodString(Listing listing)
        {
            string str = string.Empty;
            str += listing.Daily ? ", Daily" : "";
            str += listing.Weekly ? ", Weekly" : "";
            str += listing.Monthly ? ", Monthly" : "";
            str += listing.Annual ? ", Yearly" : "";
            str += listing.OnEventDays ? ", On events days only" : "";

            return str.Substring(1);
        }
    }
}